package com.qubaopen.core.common;



;

/**
 * 系统常量设置
 * 
 * @author DELL
 * 
 */
public class CoreConstants {

	public static final String ADMIN = "admin";
	public static final String PASSWORD = "123456";

	// session中存放当前登录用户Id的Key
	public static final String SESSION_USERNAME = "USERNAME";

	// session中存放当前登录用户的 角色权限，多个角色之间用","分割
	public static final String SESSION_ROLES = "ROLES";

	// 系统日期格式
	public static final String DATE_FORMAT = "yyyy-MM-dd";

	// 系统日期时间格式
	public static final String DATE_TIME_FORMAT = "yyyy-MM-dd HH:mm:ss";



	// 测试使用
	/**************************************************************************************************************************************************************************/
	// 任务地址
	public static final String URL_DOWNLOAD_PRODUCTANDSELLDEST = "/factory/products.htm";

	public static final String URL_DOWNLOAD_INITIDENT = "/factory/tags.htm";

	public static final String URL_UPLOAD_PRODUCTOBJECT = "/factory/upload.htm";

	// 防止死循环
	public static int DOWNLOAD_INITIDENT_FLAG = 1;

	// 任务名
	public static final String DOWNLOAD_PRODUCTANDSELLDEST = "DOWNLOAD_PRODUCTANDSELLDEST";

	public static final String DOWNLOAD_INITIDENT = "DOWNLOAD_INITIDENT";

	public static final String UPLOAD_PRODUCTOBJECT = "UPLOAD_PRODUCTOBJECT";

	// 顺序号位
	public static final int BOX_SEQUENCE_BIT = 5;

	// 数据库提交限制
	public static final int FLUSH_COUNT = 200;
	
	//SQL IN 语句数量限制
	public static final int SQL_IN_LIMIT = 200;
	
	//出库和撤箱操作日志的个数限制
	public static final int OUT_STORAGE_LOG_LIMIT = 10; 

	/**************************************************************************************************************************************************************************/

	public static final String[] DATE_TIME_PATTERNS = new String[] { "yyyy-MM",
			"yyyyMM", "yyyy/MM", "yyyyMMdd", "yyyy-MM-dd", "yyyy/MM/dd",
			"yyyyMMddHHmmss", "yyyy-MM-dd HH:mm:ss", "yyyy/MM/dd HH:mm:ss" };
}
